options nocenter;
libname replicat 'c:\measure\replicat\sas';
data holbrook;
set replicat.holbrook;
citidec = (-71.69-((84.2-(-71.69))/(80.02-5.86)*5.86))+(((84.2-(-71.69))/(80.02-5.86))*citimean);
if year=60 or year=72 or year=76 or year=84 then citizen2=(citidec * -1);
        else citizen2=citidec;
if year=64 or year=72 then citi2=citizen2;
        else citi2=0;
citiyear = (-71.69-((84.2-(-71.69))/(82.96-4.25)*4.25))+(((84.2-(-71.69))/(82.96-4.25))*citizen);
if year=60 or year=72 or year=76 or year=84 then citizen3=(citiyear * -1);
        else citizen3=citiyear;
if year=64 or year=72 then citi3=citizen3;
        else citi3=0;
proc reg;
        model vote = jobs income party ideology id2 south2 vhome phome region reelect economy
                unemploy popular;
        model vote = jobs income party citizen2 citi2 south2 vhome phome region reelect economy
                unemploy popular;
        model vote = jobs income party citizen3 citi3 south2 vhome phome region reelect economy
                unemploy popular;
data meier;
set replicat.meier;
citizen2 = (9.54-((97-9.54)/(93.91-13.01)*13.01))+(((97-13.01)/(93.91-13.01))*citizen);
proc logistic;
        model abort = femlab naral cath conserv medicaid priorfun famplan;
proc logistic;
        model abort = femlab naral cath citizen2 medicaid priorfun famplan;
proc logistic;
        model avortfun = naral cath conserv newdeal medicaid priorfun;
proc logistic;
        model avortfun = naral cath citizen2 newdeal medicaid priorfun;
run;
